<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="root"></div>
<script src="../../javascript/react.js"></script>
<script src="../../javascript/react-dom.js"></script>
<script src="../../javascript/babel.js"></script>
<script type="text/babel">
    /*使用JSX创建虚拟DOM*/
    const VDOM = <div>hello-React</div>
    console.log(VDOM)
    const root = ReactDOM.createRoot(document.querySelector("#root"))
    root.render(VDOM)
</script>
</body>
</html>
